<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    
    <body>
        <div class="post">


            <h2 class="title">Buscar Arquivo</h2>
            <div id="stylized" class="myform">

                <h:form>
                    
                    
                    <h:outputLabel>Tipo de Curso<span class="small">Selecione uma opção</span></h:outputLabel>
                     <h:selectOneMenu value="#{ArquivoController.tipoCurso}">
                        <f:ajax event="change" render="selectCurso" />
                        <f:selectItems value="#{CursoController.tiposCurso}" var="tipoC" itemLabel="#{tipoC.nome}"/>
                    </h:selectOneMenu>

                    <h:outputLabel>Curso<span class="small">Selecione uma opção</span></h:outputLabel>
                    <h:selectOneMenu id="selectCurso" value="#{ArquivoControllerSearch.arquivo.curso}">
                        <f:selectItems value="#{ArquivoController.cursos}" var="curs" itemLabel="#{curs.nome}" />
                    </h:selectOneMenu>
                 
                    
                    
                    <h:commandButton styleClass="button" action="#{ArquivoControllerSearch.searchCurso}" value="Procurar" />
                    <h:commandButton styleClass="button" type="reset" value="Limpar" />


                </h:form>







            </div>
        </div>

    </body>
</html>
